package com.mlnx.netty.maibb;


import com.mlnx.netty.base.handler.EventHandle;
import com.mlnx.netty.base.handler.PushMBBBpHandle;
import com.mlnx.netty.maibb.handler.MaibbServerHandle;
import io.netty.channel.ChannelInitializer;
import io.netty.channel.socket.SocketChannel;

/**
 * Created by amanda.shan on 2019/10/9.
 */
public class MaibbServerInitializer extends ChannelInitializer<SocketChannel> {
    @Override
    protected void initChannel(SocketChannel ch) throws Exception {
//        ch.pipeline().addLast(new LoggingHandler());
        ch.pipeline().addLast(new EventHandle());
        ch.pipeline().addLast(new MaibbServerHandle());
        ch.pipeline().addLast(new PushMBBBpHandle());
    }
}
